<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>mvvm</title>
</head>

<body>
    <div id="root">
        <!-- 这里是view -->
        <div>{{name}}</div> 
    </div>


    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <script>

        // 这里是ViewModel
        new Vue({
            el:'#root',
            // 这里是Model
            data:{
                name:'xibaa'
            }
        })

        Vue.config.productionTip = false //组织vue在启动时的生产提示
    </script>
</body>

</html>